package com.xpgk.mvc.messageModel;

import com.jfinal.aop.Before;
import com.jfinal.log.Log;
import com.jfinal.plugin.activerecord.tx.Tx;
import com.xpgk.annotation.Service;
import com.xpgk.constant.ConstantRender;
import com.xpgk.dto.RenderBean;
import com.xpgk.mvc.bcallVisit.BcallVisitService;


@Service(name = MessageModelService.serviceName)
public class MessageModelService {

	@SuppressWarnings("unused")
	private static final Log log = Log.getLog(MessageModelService.class);
	public static final String serviceName = "messageModelService";
	
	
	/*
	 * 新增短信模板保存
	 */
	
	public RenderBean saveMessageModelAdd(ShortMessage shortMessage) {

		RenderBean result = new RenderBean();
		String  msg="";
			if(shortMessage.save()){
				System.out.println("添加成功");
				msg=ConstantRender.render_success_code;
			}else{
				System.out.println("shibai ");
				msg="添加失败！";
			}
			result.setMsg(msg);
			return result;
	}
}
